//
//  IWelcomePage.h
//  XRmenu
//
//  Created by yangxh on 11-3-24.
//  Copyright 2011 E0571. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface IWelcomePage : NSObject {
	NSString *title; //标题
	NSInteger titleTop; //标题显示坐标y
	NSInteger titleLeft; //标题显示坐标x
	NSArray  *content; //内容，菜名字
	NSInteger titleColor; //标题颜色
	NSInteger contentColor; //内容颜色
	NSInteger contentTop; //内容显示坐标y
	NSInteger contentLeft; //内容显示坐标x
	NSString *imageFile; //标题图片
	BOOL show;//是否显示
	
}

@property (nonatomic, retain) NSString *title;
@property (nonatomic, assign) NSInteger titleTop;
@property (nonatomic, assign) NSInteger titleLeft;
@property (nonatomic, retain) NSArray *content;
@property (nonatomic, assign) NSInteger titleColor;
@property (nonatomic, assign) NSInteger contentColor;
@property (nonatomic, assign) NSInteger contentTop;
@property (nonatomic, assign) NSInteger contentLeft;
@property (nonatomic, retain) NSString *imageFile;
@property (nonatomic, assign, getter=isShow) BOOL show;
- (id)init;
- (id)initWithTitle:(NSString*)aTitle titleTop:(NSInteger)aTitleTop titleLeft:(NSInteger)aTitleLeft content:(NSArray*)aContent titleColor:(NSInteger)aTitleColor contentColor:(NSInteger)aContentColor contentTop:(NSInteger)aContentTop contentLeft:(NSInteger)aContentLeft imageFile:(NSString*)anImageFile show:(BOOL)flag;
+ (id)objectWithTitle:(NSString*)aTitle titleTop:(NSInteger)aTitleTop titleLeft:(NSInteger)aTitleLeft content:(NSArray*)aContent titleColor:(NSInteger)aTitleColor contentColor:(NSInteger)aContentColor contentTop:(NSInteger)aContentTop contentLeft:(NSInteger)aContentLeft imageFile:(NSString*)anImageFile show:(BOOL)flag;
- (NSArray *)keyPaths;

+ (id)objectFromPlist:(NSString *)FileName; //从指定plist文件中获取数据
- (void)saveToPlist:(NSString *)FileName; //将数据写入plist文件
+ (IWelcomePage *)iWelcomePageByParse:(NSDictionary *)info;

@end